package com.zhisheng.gufei.produce.service.impl;

import java.util.ArrayList;
import java.util.List;

import org.springframework.stereotype.Service;

import com.zhisheng.core.service.impl.BaseServiceImpl;
import com.zhisheng.gufei.produce.dao.GrabageProduceDestInfoDao;
import com.zhisheng.gufei.produce.entity.GrabageProduceDestInfo;
import com.zhisheng.gufei.produce.service.GrabageProduceDestInfoService;

/**
 * @author xgye
 * @date 2009-9-12
 * @version $Id$
 */
@Service("grabageProduceDestInfoService")
public class GrabageProduceDestInfoServiceImpl extends 
                       BaseServiceImpl<GrabageProduceDestInfo, Integer, GrabageProduceDestInfoDao> 
                                        implements GrabageProduceDestInfoService {

    public void saveProduceDestInfo(GrabageProduceDestInfo info) {
        this.entityDao.save(info);
    }
    
    public void setGrabageProduceDestInfoDao(GrabageProduceDestInfoDao dao) {
        this.entityDao = dao;
    }

    public List<GrabageProduceDestInfo> getInitialInfoList() {
        List<GrabageProduceDestInfo> infoList = new ArrayList<GrabageProduceDestInfo>();
        
        for (int i = 0; i < 5; i++) {
            GrabageProduceDestInfo info = new GrabageProduceDestInfo();
            
            infoList.add(info);
        }
        return infoList;
    }

}
